/*
 *  $Id: HoverableSurface.cs 1198 2010-11-20 14:32:09Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008-2010 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

using AgateLib.DisplayLib;

namespace Ragima {
    /// <summary>
    /// Две поверхности, для нормального и активного состояния.
    /// </summary>
    public sealed class HoverableSurface {
        private Surface _normal, _hover;

        public HoverableSurface(string filename) {
            _normal = new Surface(filename);
            _hover = new Surface(Paths.AddFileNameSuffix(filename, "_hover"));
        }

        public Surface GetSurface(bool hover) {
            return hover ? _hover : _normal;
        }
    }
}
